# -*- coding:utf-8 -*-
import json


def writedata(l):
    with open('code.txt', 'a', encoding='utf-8') as f:
        f.write(json.dumps(l, ensure_ascii=False) + '\n')